package chapter15.pp15_1;

public class test {
    public static void main(String[] args) {
        Graph a =new Graph();
        a.addVertex("1");
        a.addVertex("2");
        a.addVertex("4");
        a.addVertex("3");
       a.addEdge("1","2");
       a.addEdge("1","4");
       a.addEdge("1","3");
       a.addEdge("2","3");
        System.out.println(a.toString());
//        a.removeVertex(2);
//        System.out.println(a.toString());
        System.out.println(a.shortestPathLength(1,2));
    }
}
